Used for DirectoryTarResourceTest